<?php

class SecurityManager extends CSecurityManager {

	public function hash($data, $salt = null) {
		return $this->computeHMAC($data, $salt);
	}

	public function validateHash($data, $hash, $salt = null) {
		return $hash === $this->computeHMAC($data, $salt);
	}

}
